package cn.shujuhai;

import cn.dev33.satoken.SaManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableAsync
@EnableScheduling
@EnableCaching
public class CmsApplication {

    private static final Logger logger = LoggerFactory.getLogger(CmsApplication.class);

    public static void main(String[] args) {
        try {
            SpringApplication.run(CmsApplication.class, args);
        } catch (Exception e) {
            logger.error("应用启动失败", e);
        }
        System.out.println("启动成功，Sa-Token 配置如下：" + SaManager.getConfig());
    }

}
